.file-upload-demo {
  padding: 24px;

  .demo-card {
    margin-bottom: 24px;
  }
}
.file-upload-modal {
  .ant-modal-body {
    min-height: 450px;
  }
  .ant-form-item-control-input-content {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .file-upload-params-item {
    .ant-form-item-control-input-content {
      justify-content: flex-start;
      .ant-input-number-suffix {
        color: rgba(18, 18, 18, 0.3);
      }
    }
  }
  .file-upload-dragger {
    background-color: #fff;
    transition: all 0.3s;
    width: 600px;
    display: block;

    &:hover {
      border-color: rgba(69, 81, 229, 1);
      background: rgba(69, 81, 229, 0.1);
    }

    .ant-upload-drag-icon {
      color: rgba(69, 81, 229, 1);
      font-size: 48px;
      display: flex;
      justify-content: center;
      margin-bottom: 8px;
    }

    .ant-upload-text {
      font-size: 16px;
      color: #121212;
      margin-bottom: 8px;
      font-weight: bold;
    }

    .ant-upload-hint {
      font-size: 14px;
      color: #12121280;
      line-height: 1.5;

      margin: 0 auto 4px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
  /* 自定义文件列表样式 */
  .file-list-container {
    // border: 1px solid #f0f0f0;
    // border-radius: 8px;
    // margin-top: 16px;
    // overflow: hidden;
    // box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    .file-list-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      background-color: #f5f5f5;
      border-radius: 4px 4px 0 0;
      margin-bottom: 12px;
      font-weight: 500;
    }

    .file-list {
      max-height: 320px;
      overflow-y: auto;

      .file-list-item {
        padding: 0;

        .file-item-content {
          display: flex;
          align-items: center;
          width: 100%;
          margin: 7px 0;

          transition: all 0.3s ease;
          transition: background-color 0.3s;

          height: 54;
          border-radius: 5px;
          border-width: 1px;
          border: 1px solid #e7e7eb;
          box-shadow: 0px 1px 3px 0px #0000000d;
          padding: 8px 12px;
          cursor: pointer;

          &:hover {
            background-color: #f9f9f9;
          }
          .file-icon {
            font-size: 24px;
            margin-right: 12px;
            color: #8c8c8c;

            &.file-icon-image {
              color: #52c41a;
            }

            &.file-icon-pdf {
              color: #ff4d4f;
            }

            &.file-icon-word {
              color: #1890ff;
            }

            &.file-icon-excel {
              color: #52c41a;
            }

            &.file-icon-zip {
              color: #faad14;
            }
          }

          .file-info {
            flex: 1;
            overflow: hidden;

            .file-name {
              font-weight: 500;
              margin-bottom: 4px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              color: #121212;
              font-size: 13px;
            }

            .file-meta {
              display: flex;
              align-items: center;
              font-size: 12px;
              color: #8c8c8c;

              .file-size {
                margin-right: 12px;
                color: #12121280;
              }

              .file-type {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 200px;
              }
            }
          }
        }
      }
    }
  }
  .file-upload-params {
    width: 600px;
    margin: 0 auto;

    .file-upload-params-title {
      font-weight: 500;
      margin-bottom: 8px;
      color: rgba(18, 18, 18, 0.7);
      position: relative;
      padding-left: 8px;
      display: flex;
      align-items: center;
      gap: 4px;

      &:before {
        content: "";
        position: absolute;
        left: 0;
        width: 2px;
        height: 13px;
        border-radius: 1px;
        background-color: #4551e5; // 蓝色色块
        margin-right: 8px;
      }
    }
    .file-upload-params-item {
      display: flex;
      align-items: flex-start;
      border: 1px solid #e7e7eb;
      border-radius: 5px;
      flex-direction: column;
      justify-content: space-between;

      margin-bottom: 12px;
      cursor: pointer;
      gap: 4px;
      &:hover {
        background-color: rgba(0, 0, 0, 0.04);
      }
      .file-upload-params-item-label {
        font-size: 14px;
        color: #121212;
        font-weight: 500;
        padding: 0px 12px;
        padding-top: 8px;
      }
      .file-upload-params-item-value {
        font-size: 14px;
        color: #12121280;
        font-weight: 400;
        padding: 0px 12px;
        padding-bottom: 8px;
      }
      .file-upload-params-item-custom {
        background: #efeff6;
        width: 100%;
        padding: 8px 12px;
      }
    }
    // 选中态
    .file-upload-params-item.selected {
      border: 1px solid rgba(69, 81, 229, 1);
      box-shadow: 0px 0px 3px 0px rgba(69, 81, 229, 0.6);
    }
  }
}
